body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #71b7e6, #9b59b6);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.contain {
    width: 800px;
    height: 600px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    border-bottom: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.8);
}

.top-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    height: 100%;
}

.chat-lst-1,
.chat-lst-2 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.chat-lst-1 {
    justify-content: flex-start;
}

.chat-lst-2 {
    justify-content: flex-end;
}

.pic {
    width: 40px; /* 设置图片的宽度 */
    height: 40px; /* 设置图片的高度 */
    overflow: hidden;
    border-radius: 50%;
    margin-right: 5px; /* 图片与消息之间的间距 */
    margin-left: 5px; /* 图片与消息之间的间距 */
}

.pic img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片以正确的比例显示 */
}

.chat-content-1,
.chat-content-2 {
    padding: 10px 20px;
    border-radius: 20px;
    max-width: 60%;
    word-break: break-word;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.chat-content-1 {
    background-color: #dcf8c6;
    border: 1px solid #c0e0a6;
}

.chat-content-2 {
    background-color: #ebebeb;
    border: 1px solid #d0d0d0;
}

.bottom {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #e0e0e0;
}

.input textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    resize: none;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input textarea:focus {
    outline: none;
    border-color: #a0a0a0;
}

.send {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.send button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: #4CAF50;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send button:hover {
    background-color: #45a049;
}